<?php
     require_once('MysqlConnect.php');
     
     $pid=$_POST['id'];
     $sql="select * from articlelist where id=$pid";

     if(!$sel=mysql_query($sql)) echo "定位失败";
     $data=mysql_fetch_assoc($sel); 
?>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
     <link rel="stylesheet" href="articleCss.css">
</head>
<body>
	<div id="header" style="background-image:url('BG1.png');width:900px;"> <h1 style="text-align:center;">文章发布管理系统</h1></div>
	<div id="menu" style="background-image:url('BG2.jpg');float:left;width:100px;" >
			<p style="text-align:center;"><a href="Article_add_display.php">发布文章</a></p>
			<p style="text-align:center;"><a href="Article_manage.php">管理文章</a></p>
               <p style="text-align:center;"><a href="MainPage.php">退出登陆</a></p>
	</div>

	<div id="content" style="background-image:url('BG3.jpg');height:800px;width:800px;float:left;">
     <h2 style="text-align:center;"> <b><?php echo $data['title']; ?></b>  </h2>
     <br>
     <small>  <h4 align="center" color="yellow">作者：<?php echo $data['author']; ?></h4></small>
     <br>
     <small> <cite> <h2 style="text-align:center;"><?php echo $data['description']; ?></h2> </cite> </small>
     <br>
     <br>
     <div style="float:center;width:800px;height:500px;" align="center"><div style="width:600px;height:400px;" ><h3 style="text-align:center;"><?php echo $data['content'];?></h3></div> </div> 

     <br>
     <br>
     
          
           
    </div>

</body>
</html>